<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<html xmlns:amfc>
	<head>
		<title>Incomplete</title>
		<meta name="GENERATOR" Content="Microsoft Visual Studio .NET 7.1">
		<meta name="CODE_LANGUAGE" Content="C#">
		<meta name="vs_defaultClientScript" content="JavaScript">
		<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
		<?IMPORT namespace="amfc" implementation="/include/htc/datagrid.htc">
		<script src="/include/common.js"></script>
		<SCRIPT src="/include/soap.js"></SCRIPT>
		<SCRIPT src="/include/RDS.js"></SCRIPT>
		<SCRIPT src="/include/xml.js"></SCRIPT>
	</head>
	<body style="background-color:menu;" scroll="no" bottommargin="0" topmargin="0" leftmargin="0" rightmargin="0">
		<table height="100%" width="100%">
			<tr height="80%">
				<td>
					<amfc:htcDatagrid id="dtgIncomplete" caption="Menus" allowEdit="true" allowAdd="true" allowDelete="true"
						style="width:100%;height:100%;overflow:auto" hiddenFields="" onDelete="deleteRec()"
						onEdit="editRec()" onAdd="addRec()">
						<RS>
							<asp:Literal ID="ltrMenus" Runat="server"></asp:Literal>
						</RS>
					</amfc:htcDatagrid>
				</td>
			</tr>
		</table>
	</body>
</html>
<SCRIPT language="javascript" src="Common/Admin.js"></SCRIPT>
<script>
function deleteRec(){
	if( !checkWS() || !confirm("Delete Record?") )event.returnValue = false;
	var ret = WS(CO("Menu_Delete"),_ID());
	if(showSOAPError(ret)) return event.returnValue = false;
}
function editRec(){
	if(!checkWS()) event.returnValue = false;
	var ret = WS(CO("Menu_Update"),_ID(),event.fieldName,event.fieldValue);
	if(showSOAPError(ret)) return event.returnValue = false;
}
function addRec(){
	if(!checkWS()) event.returnValue = false;
	var ret = WS(CO("Menu_Add"),getDSFromRS(event.rs,"xmlProgram"));
	if( showSOAPError(ret) )return event.returnValue = false;
	_ID(ret.value);
}
function _ID(id){
	var idName = "MenuID";
	if( arguments.length )event.rs(idName).value = id;
	return event.rs(idName).value;
}
</script>